hides cancel button