Document creation buttons margin + code cleanup.