fixed up issues with buttons in the main activity