Further changes to GUI code to accommodate Automatic Reference Counting. Cleaned up a lot of warnings in the GUI code.