improved load templates and a issues when presseing enter in the search