refactored app into single page