Updated to work with links and title alert