custom code for top bar