Fixed logic for app update checking.
Moved logics for app update checking to a separate class.