remove ajax from controller