add activity state restore after rotation
fix issue with precision