Fixed the navagation buttons to be disabled at first.

This patch also enhance to save/restore their state.