Added Up and Back Button behavior.