fixing resize widget to correctly register done, adding escape key as additional mechanism to stop resizing