Added alertview and scroll behavior