toggle autofile with clicking