Changed behaviour of tab's to work more nicely