fixed compiler bugs added tray component