Seperated objects into individual layouts and created layouts programmatically