insert commands for log boxes