setting ATS previous button click