add callback option and document scoll to focus function