Refactor Material Design PDF Viewer toolbar into a single element