general layout and update params