creating controller, tempaltes, etc to add devices