Fixed connections between main -> profile, profile -> profilename. Also added profile.xml for menu.