Worked out how to 'subclass' widgets