use interval instead of click