add frontend code; clear service and dao classes