changed to onclick in menu click