Fix main page buttons; cleanup; fix pagination.