Added GUI hooks to business logic