Reorganizing routes
Added auto-closing for dropdown menu