devide template into parts to manage