Add refresh function, on start app check the last posts, beginning Endpoint class for server communication.