refactored actions from context to activity, corrected bug in fetchDeviceTags