getting active buttons to work