Add in switch functions for spaces -> spaces and spaces -> tabs