Used addClass('ui-screen-hidden') instead of hide() which hides too long