add new feature to 'renderform' function, user could add HTML id and class now