added fixes to ResourceWidget