Custom styles get lost when navigating between views.