adding some crraaazzzy conditionals to handle all the filtering thats going on on one page