got the main layout working