Removed a duplicate getactivityby id function