attached toggle-option to navbar