setup the profile controller & all assosiated fucntions