fix styling
add resize weight to splitpane
bug fixes for unreachable code