added option to remove focus on background click, added action check if parent is action element, wrapped each palette element in wrapper