Added eventlistener to fetch title