Tab selection

Not sure if this implementation is the way to go, @mneorr @kattrali please have a look and tell me if it sucks =)