get rid of cancel button. unnecessary function