refactoring the handler layout and adding parameter handler for parameter creation