Created the useActions hook