render logic on createactivity.xhtml