Split tab functions into separate file
Fix Makefile