organized code. Fix issues after ajax request. Now it also prints a pretty preview showing name of projects and issues.