President urges media to continue its role against terrorism, extremism