adds hide feature for add button