Add missing border in advanced mode
Fix extra vertical margins for output cells