Move session template to top and include code_of