installed router, refactored app into sep templates