Add profile functionality to main dialog