remove worthless code and hide avatar on mobile