stops functionality in progress