added support for placing icon on the right