added animframe for viewer