Add export function

Fix highlight active button