separated model from main application file
renamed app file and modified URLs