added code to scroll to the top after added