Adjust service return statuses list  based on type id sent in ajax request
Change instance variable name
add a handler for ajax requests