added header click event, and small bug fix with inline editing