Modify layout and resource