Fixing footer on avatar page + code cleaning