now hiding pagination wrapper when not needed