simplify the main layout