add functions to get widget by id_base and sidebar by sidebar_id + cleanup