working on functionality of JSF