added branch routing and fixed some styling issues