completed attachment of frontend with api