minor fix: cancel button shouldn't refresh page