layout building done, need to implement database portions