Prepare to handle backpress