tabs functionality
some UI tweaks too.