moved MainActivity actions to SetLineActivity