Fixed bug in Activity Life cycle, everything is restored after rotation