add widget functionailty to callfn