fix tray bug and remove console logs