Refactor smartpanel2 animations