re-added MainActivity intent filter, added null checks to MainActivity