removed echo, placed hook template in right location