rendering/redirect issue