Finished Code page. Fixed close button bug