While creating stack navigation I needed to add a save button to the headerRight. Here is the code for the navigation stack:
save
headerRight
ret