fixes test to match proc return
implements profile redirect controller