Another small tweak of code for edit show function.