Add calculating input data

This is tmp commit. There are many TODO.
Remove needless events
Fix func name
Fix get return value
Remove duplicated loading