Added some css features to jquery events