add controller for tabs