fix buttons in the main page