changed method to toggle

In case someone wants to reuse the method to show instead of hide