added controller for each tab