add absolute positioning for modal instead of fixed
pass functions in instead of using window