toolbox functionality

added click function for toolbox buttons and current interaction type