Handle keyboard avoiding and perfectly optimize for iPhone4&5