Functions for displayin and handling branches