fix menu bug where its not selecting correctly on refresh