finish display code