Added menu active function