Make helper fn for enabling components

My first pull request. Better late than never :)