fixed NPE in longCalc, added click on trayItem