Add clone method for widgets