Make history closeable in wide windows
In wide windows, history screen does not replace the calculator screen, but it splits the screen. Therefore, there is no back arrow to close it. I made the the history button close the history screen if it is already open.