Added function for initializing the default state of the components according to whether or not the project in memory is encrypted or not and what the password is.