handle square cell