created ajax controller for creating task