re-design front end

fix some front end errors