imp changes as needed

1) code improvements
2) make room for sub messages
3) make room for multiple forms to run concurrently
4) buttons action