Improve events page and sensor edit page