fixing IOS& modal window issues