Updated theming function to support multiple actions