Fixing the cancel button on the submit post dialog