replaced deprecated functions, fixed some font issues