hide main/footer when list is empty; fix styling