Added a base activity and changed all other activities so that they extend from it.