added check for iphone 4 since there is no room at bottom for exit button