added preventing default behaviour of links