add menu hide logic
Merge branch 'master' of https://github.com/thx/RAP