modified controllers and tables, added routes