Edit room function