So your effective place of management is UK. That's Corporate Tax then Personal.
If you want to go down the offshore route then you need to set up a real office with workers actually doing something. Then pay yourself a salary and retain profit. Bare in mind the management and day to day...