added support for orientation mapping to buttons