Ajax actions need to be conditionally run differently than others