Added postWidget functionality in the connector