main layout mostly finished