Added max dot logic to dot nav