added history ui pages
modified the widget.cpp for history page buttons