changes to layout and scaling propeprly