user interface rework

Register and loginforms are now dialogs and mainform is the running
application