change layout to relative