For reasons of futureproofing, it's best to have constants that are used instead of having the end developer hardcode numbers in. Consider adding constants for navigationMode to use instead of specifying integers.