fix bugs, port RawPane
port DetailsPane part 1