Get tabs working

Closes #771.