Added support for keeping position after refreshing

Fixes #26