Fixed rendering of window and buttons, added onClick to buttons along with a test.