Frontend

fixed lots of stuff