code clearup + automatcially open tab/ focus tab