menu hide function fixed