added setOptions method for smarty widget