some css corrections and api fix