added code to connect the toolbar icons to the functions