Changed the background color of the window. Implemented setResult functions