update cocoa GUI