add main app and router