update frame layout