Refactored ids into references for the layout module.