Implemented the 'update layout method'