settings view works except premature dismiss