apply buttons in main activity