material menu  and some js fixes