fix error when no user given for a material
show the mobile navigation only on the index page