Clear the Avatar controller for DRY and return correct response to JSON