Added get and set methods for template and layout