Fixed code generation; enabled changing files when displaying profile info