fixed npe
added click intent