bug fixes and enhancments on animation

added fade away and fade in animation to overlay view when browser is
presented and dismissed, Also fixed orientation change issue.