changing opacity with click and dblclick