for top bar position

update code