Added admin tabs, form functions and globals