Reset sliding panel text and handle screen rotation