Implementing initial layout functionality