Added support for font icons

update() now allows for onhide and onbeforehide callbacks