Started constructing UI; fixed many bugs related to uncommon window sizes