add widget and server pointer