Hide/show functions now working