working on events when li clicked