fixed resize green bug, improved formatting and clarity