Disables layout for some json-responding actions