front end for index, profile and register are done