implemented edit menu ui

perfected the highlight logic and selection