auto scroll to edited element on form close