reduces code duplication
brings app into foreground