using .get(,"") instead of default-if-statement in click_log function. Merging the three if statements in to one.