implementation of add activity