Changed styling and programming logic for several activities

Changed styling and programming logic for several activities