working version of the accordion options view