Working with template and menu