set models and tables