Fixed bug in activity controller

and matched version code with version name