Fixed page reload onclick issue