make hide/show button work

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>