added functionality for remaining buttons