Refine js code for Addition Handlers and add css to flotr for pan mode summary selection