fix bug with cancel button being missing