the action that should be executed when a player clicks on the item. The action should return true if the UI should be closed after the action is executed, false otherwise.