moved action to defaultButton and named all itemIds to its type