connect main and profile activities