proper sizing and resizing of tray icons
remove redundant code