refactored code to use single form for new and edit, added Guide page