Fixed so that when a user is opened in the UserProfileView
you get the correct variables

part of design

Signed-off-by: ludvikbrodl <bas11lbr@student.lu.se>