add broadcast reciever

and simplyfied applayout