ui changes and back key press event