Implemented refreshDisplay() method.