If you are in state of haiz (najasath due to periods) can you view the dead body or be present at the funeral and can you pray namaaz e mayyit?

At the time of last movement (ehtizar)it is makrooh to stay but after that it is ok as for as namaz concern one can pray