added option to change side of flags, left or right of bar