made it work with interface builder