fixed tab spaces
Fixed bug with time restrictions and create link between activities and users when an activity is completed