Added confirm message if the current frame is changed and not saved.