more changes to MainActivity