changed code to use Buttons instead of MessageBox for Close/Exit