adding resource removing functionality to UI