added jQuery functions for click, double click and hover