made a proper component out of it.