Change ajax request logic. Add command method.