Removes some unused funds and pair ajax hooks with funcs