run blocks when clicked