mousein & mouseout added, improved click implementation