pass widget AND metadata