Adding defaultAction and fix multiples warnings