fixed bug login and flyout menu for ios6