Added position variable to template context

Changes:
- added position variable to template context.