Corrected code to prevent multiple activities from opening