fix detection of selected check in/out tab