toogle content click event & reformat code