box displays and saves code correctly