Changed render to redirect