Made view_name more bullet-proof.