basic open and closing of applications