changed the logic that controls how the share bar appears and reorganized the order of appearance of some of the methods