Set tables in controller