implement APPLICATION_HANDLES_OPEN