Save subjects on localStorage and load them if they exist.