Added position to field elements
Extracted the tab methods into a separate plugin