refactor code
make menu can active