replaced hide() and show() call with .run() method