lot of fixes, ui optimisation and new javascript alert UI