fix for view overlay logic