Add function to automatically change hash under cursor