Added main functional in App