added possibility to change template