Update tray.cpp