I used Action's argument in modalHeading() method. It works on first render. Same arguments are not available in rerender