Add support visible attribute for menu

Reformatted patch request #357 and removed other changes on @arok's master branch.