Adding click event to title