fix menu active issue
add state_event on page
refactoring