Clean up use of .dialogError in favour of resourceDialog