first version with main activity