added missing element method
fixed template rendering