thin controller and add methods to models