Client: fix for study panels open / closed state.

Remember the last viewed study. This way if the user reloads the page, the panels are not initialized to all open again.