works except double click problem