show dispatch edit dialog properly, check for valid layer