created func where clicked genre is filtered