Added help tab and corrected a conditional function