adding press api to templates