adding tab pressbutton action