Moved modal html behaviour code to form .py files, deleted extra html templates