added buttion functionality to all buttons