modified layout, auto-scroll to specific view, and alert dialog