Lockable template tabs

Adding the ability to lock tabs on templates, making them read only.