active menu switching fixed