Added  toolbar functionality