trying to keep the code as clean as possible, experimenting with HTML forms