Search/Back button does not work correctly