added support for viewing previous expression