Added callAdd function to mainContorller