icon is now updated when the view is attached to a window, rather than when it is created