fix for 500 error (moved rendered logic to ui:fragment