Replace respond_to in profiles controller