Adds pause and resume function
removes form from HTML