Fixes issues with default form operations, also implements  modal window warnings.