removes link bug that causes page reload