first page buttons linked and queries interpreted