added 17 px to compensate for scrollbars