Tidy up templates loaded