fixed route problems in main app