laid out most of the main UI