Changed views functions to flot graphic library (issue #4)