Templates page does not load properly