edit floor logic