adding show() and hide() methods