navbar and cleanup on app