refactored app into own mvc files