Function initLoader added. Added css classes hide and show.