passing options to template