resolved issue with permissions when moving pending msgs to message - call usemasterkey at the top of the method. Removed response from message helper methods as otherwise response.success/error was called multiple times