fixed reset pattern and added titles for pages