Framework to work with layout