updated onclick events for left bar