Changed filtering functions according to the getSelection Button.