added new button functionality