Added intent. When mainbutton pressed app crashes though