moved heartbeant functionality in gui