Display function is now functional for resize. Very sloppy but works.