fixed sending of application. and flash message