Added layout support for actions that return strings
Added support for before filtering