correct redirects after creating or editing sensors