made navbar active states work and added pagination to research topics
merged from frontend