Refactor my activity to install activity