Automatically grabs title from element clicked