added fade function

adds the fade function to fade elements (alerts)