wap back button logic