moved the log and delete markers button code