setting up proper calls to REST API + adding in a new state for 'RESTART'