remove deprecation warning from Devise + implement #838 + make sure the index page has always a 0 position