Fixed errors in MainActivity and added new activity