Fix some calculations and add the delegate method.

- Fix the position of the menu items when it appeared.
- Fix the angle calculation.
- Added delegate method to set the size of the buttons.

Best regards.