split the Model, View and router in different folders. Avoid long files like this one - they are hard to maintain and can produce bugs.