Finished activity tab; redesigned tasks tab; some code cleanup.