function for logging user activity
function for logging user activity
add user activity logging to the pages
fixed logger issue