ui.c - Added support for storing pause state.

Added support for storing pause state.