Fixed respawning in players view and cleaned up some code