assignment viewing: corrections at the calling of function by the button