Fix to attachment count in form toolbar, form initation