finish the function that when the bid is on active the activity is disabled