toolbar layout and functionality