added active status to two buttons