(Define) Refactored Warnings, fixed button, fixed Dialog, added Close Button