Updated sleep to Waitone for Poll thread; Fixed bugs in tray display.