generate profilepage controller