fixed templates and created 3 module hooks