Moved template outside html body