Only append toolbar to dom when it will be shown