change controllers methods to models methods
Merge pull request #9 from josev/methods

change controllers methods to models methods