Fixing the activity and style errors