refactor out sidebar/main styling to gui