Chagned to use fadeIn() and fadeOut() instead of hide('fade') and show('fade')