completed basic layouting