Adding onclick events in user page