updated layout, but still working on activityDuration function