adds 4 callback function and passes the tab
removes previous callback functions