Fixed js states for custom link