Condense all ajax success messages and errors to run through the main ajax function