adding code to allow for responsive size mapping & refresh