add function for parsing subject sidebar