Implemented async task for back button