The fontend code for clusterapp