Added frame positioning to show() and hide()