add a base view controller to handle scroll to hide action