added option to change position of bar, top or bottom of page