removed ajax controller and ajax method refactored