add fixed position, draggable panel
functions refactorization