added button functionality and styling