-Sorry, just ignore my above response because that answer is supposed fro another question. Here is my answer to your question:
you just need to find a new job in the same/similar area as soon as possibe and use EAD to work. After you are laid off, your status automatically becomes AOS and you are legal to stay.