Keep track of collapsed modules

We should keep track of the collapsed modules in de sidebar. This will come in handy when an unauthenticated user wants to continue adding series after being prompted to sign in.
Why do we need this step? Wouldn't it be stored at the end of this function anyway?