object construction action moved to refresh function instead