Tidy up view source