added handlers to buttons on top toobar