Cleaned some sidebar code