Debugger: Streamline option page code

Change-Id: I4ce31031bda92864212e914257e4f5c1fafa2af6
Reviewed-by: hjk <hjk121@nokiamail.com>