Added new code for widget ID's. Includes saving to session and prospet tables