Update positions with a button instead of a link.
Fix indenting
Only re-insert if needed
Merge pull request #1 from LaDress/improve-performance

Improves performance