chaniging styling and adding click event listeners to buttons