added onclicks for all li elements