Added gear icon and event listener to display/hide options