added support for horizontal menu