added ability to override default thymleaf layout via request attribute