refactor: extract updateContents() function
Show title below NEXT and PREV on hover