Added a cancel button and tested older and newer jquery/jquery-ui versions