Moving all nav related functions to this file