Some checks on existence of the "avatar" id and if elements are visible only when the radio is selected is useless to select the radio when focusing on the element

Signed-off-by: emanuele <emanuele45@gmail.com>
Another round of changing avatars javascript

Signed-off-by: emanuele <emanuele45@gmail.com>