Aqaaid

Getting the reward of an action if one made waseelah through that action

Q: There is hadith in 'Fazail A'mal' about three persons who got trapped in a cave. In order to escape from that they gave wasila to Allah Ta'ala of one of their good deeds each. Then Allah Ta'ala made way for them to escape.

I want to ask: If a person is in some sort of trouble and if he asks Allah Ta'ala in the above mentioned manner, then the good deed which he gave wasila of, will the "ajar" (reward) of that deed get finished or will he get that deed's "ajar" (reward) in the afterlife also? 

Shaking one's legs when sitting

Q: My question is that whether it is haram or anything difficulties weather telling in Islam shaking your legs while sitting on bed or any anywhere like on chair Suraj about the reality behind this is it true or not some people says keep shaking legs while sitting on bed is the act of illness or will come illness in your home at your home please suggest or give me justify answer in the light of Islam or an hadees thank you so much.