Added Close buttons and bindings.
Changed x (close) button function.