Reworked IE9 support and added support for dynamic button size in IE9