fixing ability to create and delete sensors