splitting app into separate files