making joint state widget