refactored
added outline for boxes
added layout