Fixed firefox crashes and added scrolling and resizing hooks