added prevent double click code