finished moving all current function logic from the front gui visible end to the private backend.