added sleept timer to avoid double clicking