save configuration every time when page is changed