added resizing views and margins