Fixed autotabbing and folder importing

auto tabbing was acting strange. I fixed that too