added flash method to the home screen