Connected GUI to business logic.