(updated) PP will now remember if panel was collapsed or not

Replacement for #20. Merging old code with new develop branch is too hard =)