created global app var and added first responder support