Adding region blocks to help manage code.
Fixed bug where background layout was incorrect.