Added menu hide function