create frontend index and model