basic exception handling when page is changed or down