Improved the generic Dialog function to allow a list of items as message. It was also included a onClickListener to the history function allowing the user to work on a previous expression.