Improved the code so that it doesn't throw an exception. Now its more of the ui that needs improving
Added comments
Replaced setting some itesm to Visible=false and Visible=true and instead changed it to a Placeholder