Continue button finally working perfectly