Back button problem solved using intent.setFlags() method