moved tempalte to markup