changed the way the application closes
renamed buttons as convention