fixed bug, closing parent activity more correctly