Refactor ActionBar and cancel request